find longest word in a string javascript